<template>
	<view class="wrap">
		<view class="localbox" :style="{'padding-top': `${top}rpx`}">
			<image v-if="bk" src="../../static/img/fanhui.png" mode="" @click="back"></image>
			<text>{{name}}</text>
		</view>
		<view class="next"></view>
	</view>
</template>

<script>
	export default {
		props: {
			name: {
				default: "Null",
			},
			top: {
				default: "40",
				type: String
			},
			bk: {
				default: true,
				type: Boolean
			}
		},
		methods: {
			back () {
				uni.navigateBack({
					
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.wrap {
		
		.localbox {
			display: flex;
			align-items: center;
			justify-content: center;
			padding: 0 18rpx;
			height: 82rpx;
			line-height: 82rpx;
			position: fixed;
			top: 0;
			left: 0;
			right: 0;
			z-index: 1;
			background-color: #fff;
			
			& > image {
				position: absolute;
				left: 36rpx;
				width: 36rpx;
				height: 36rpx;
			}
			
			text {
				font-size: $largeFont;
				font-weight: bold;
			}
		}
		
		.next {
			height: 122rpx;
		}
	}
</style>
